package com.woniuxy.thread.commucation;

/**
 * 生产者线程
 *
 * @author 老谭 (<a href="http://www.woniuxy.com">蜗牛学苑</a>)
 *
 */
public class ConsumerThread implements Runnable {
	private Resource resource;

	public ConsumerThread(Resource resource) {
		this.resource = resource;
	}

	@Override
	public void run() {
		resource.sub();
	}

}
